package experiment3.task1;

import java.util.List;

/**
 * @author 冯永龙
 * @date 2021/3/23 20:00
 */
public class Teacher extends Person {
   private String subject;


   public Teacher(){

   }

    public Teacher(Integer id, String name, String sex) {
        super(id, name, sex);
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    @Override
    public String toString() {
        return "Teacher{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                "subject='" + subject + '\'' +
                '}';
    }
}
